var pageii = null;
var grid = null;
$(function () {
    grid = lyGrid({
        pagId: 'paging',
        l_column: [{
            colkey: "realname",
            name: "盟友名称",
        }, {
            colkey: "bankname",
            name: "银行名称"
        }, {
            colkey: "bank_card_no",
            name: "银行卡号"
        }, {
            colkey: "amount",
            name: "提现金额",
            width: '120px'
        },{
            colkey: "pay",
            name: "实际到账金额",
            width: '120px'
        },{
            colkey: "status",
            name: "提现状态",
            renderData: function (rowindex, data, rowdata, column) {
                var str = "";
                if (data == "0") {
                    str = '未提现';
                } else if (data == "1") {
                    str = '已提现';
                }
                return str;
            }
        }, {
            colkey: "api_time",
            name: "提现时间"
        }],
        jsonUrl: rootPath + '/star/agent/findWithdrawalByPage.shtml',
        dymCol: true,
        checkbox: true,
        serNumber: true
    });
    $("#search").click("click", function () { // 绑定查询按扭
        var searchParams = $("#searchForm").serializeJson(); // 初始化传参数
        grid.setOptions({
            data: searchParams
        });
    });


});
